require('dotenv').config({ path: `./config/.env.${process.env.NODE_ENV}` })
const crypto = require('crypto')

module.exports = str => {
  return crypto.createHash('md5')
    .update(process.env.MD5_SALT + str)
    .digest('hex')
}